#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox->addItem("麦辣鸡腿堡");
    ui->comboBox->addItem("培根蔬粹双层牛堡");
    ui->comboBox->addItem("巨无霸");
    ui->spinBox->setRange(1, 10);
    ui->spinBox_2->setRange(1, 20);
    ui->spinBox_3->setRange(1, 20);
    ui->comboBox_2->addItem("麦辣鸡翅");
    ui->comboBox_2->addItem("麦乐鸡块");
    ui->comboBox_2->addItem("中薯条");
    ui->comboBox_3->addItems({"可乐", "雪碧", "咖啡"});

}

Widget::~Widget()
{
    delete ui;
}

